
find_package(Qt4 COMPONENTS QtCore QtGui Phonon QtNetwork QtMultimedia QtXml REQUIRED)
FIND_PACKAGE( OpenCV REQUIRED )
include(${QT_USE_FILE})

set(Emisor_Imagenes_HEADERS sender.h)
set(Emisor_Imagenes_SOURCES sender.cpp main.cpp)
#set(myproject_UIS ui/Window_DatosPersonal.ui)
#set(myproject_RESOURCES resources/qfiscalcode.qrc)

qt4_wrap_cpp(Emisor_Imagenes_MOC ${Emisor_Imagenes_HEADERS})
#qt4_wrap_ui(myproject_UIS_H ${myproject_UIS})
#qt4_add_resources(myproject_RESOURCES_CPP ${myproject_RESOURCES})

include_directories(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib)

add_executable(Emisor_Imagenes
    ${Emisor_Imagenes_SOURCES}
    ${Emisor_Imagenes_MOC}
#    ${myproject_UIS_H}
#    ${myproject_RESOURCES_CPP}
)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
target_link_libraries(Emisor_Imagenes ${QT_LIBRARIES} ${OpenCV_LIBS} Compresor_Imagenes)